import { createStore, applyMiddleware } from 'redux';
import { routerMiddleware } from 'connected-react-router';
import thunk from "redux-thunk";
import history from "./history";
import reducer from './reducers';

const index = createStore(reducer, applyMiddleware(thunk, routerMiddleware(history)));

window.store = index;

export default index
